<?php

namespace App\Models;


class Tags extends Base
{

    protected $table = 'tags';

    protected $fillable = [
        'id','name','created_at','updated_at'
    ];

    protected function tags(){
        return $this->select(['id','name'])->orderBy('created_at','desc')->get()->toArray();
    }


    protected function newTags($ids = []){
        return $this->select(['id','name'])->whereIn('id',$ids)->get()->toArray();
    }
}
